package cn.edu.sdjzu.xg.bysj.domain;



import lombok.*;

import java.io.Serializable;
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public final class Department implements Comparable<Department>,Serializable{
	private Integer id;
	private String description;
	private String no;
	private String remarks;
	private School school;



	public Department(String description, String no,
					  String remarks, School school) {
		super();
		this.description = description;
		this.no = no;
		this.remarks = remarks;
		this.school = school;
	}



	@Override
	public int compareTo(Department o) {
		// TODO Auto-generated method stub
		return this.id-o.id;
	}
	
	
}
